import Router from 'koa-router';
const router = new Router();

router.get('/', async ctx=> {
    await ctx.redirect('/home');
});

router.get('/home', async ctx=> {
    await ctx.render('home', {title: '主页', body:'这是主页'});
});

router.get('/filesUpload', async ctx=> {
    await ctx.render('filesUpload');
});

router.get('/fileUpload', async ctx=> {
    await ctx.render('fileUpload');
});

export default router;